﻿@{
    var action = ViewContext.Controller.ValueProvider.GetValue("action").RawValue.ToString();
    var controller = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString();
    var returnUrl = "/Admin/" + controller;    
}

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="@Url.Content("~/Areas/Content/images/favicon.png")" type="image/x-icon" rel="icon" />
        <link href="@Url.Content("~/Areas/Content/images/favicon.png")" type="image/x-icon" rel="shortcut icon" />
        <link href="http://fonts.googleapis.com/css?family=Cuprum" rel="stylesheet" type="text/css" />
        <title>Admin Control Panel</title>
        @Content.CssAdmin("styles.css", Url)    
        @Content.ScriptAdmin("jquery-1.7.2.min.js", Url)
        @Content.ScriptAdmin("jquery-ui-1.8.16.custom.min.js", Url)        
        @Content.ScriptAdmin("jquery.ToTop.js", Url)
        @Content.ScriptAdmin("jquery_caledar.js", Url)
        @Content.ScriptAdmin("custom_forms.js", Url)
        @Content.ScriptAdmin("jquery.url.js", Url)
        @Content.ScriptAdmin("jquery.fancybox-1.3.4.pack.js", Url)
        @Content.ScriptAdmin("admin.js", Url)    
        @Content.ScriptAdmin("custom_forms.js", Url)
        @Content.ScriptAdmin("jquery.form.js", Url)
        @Content.ScriptAdminEditor("innovaeditor.js",Url)    
        <!--[if ie 6]>
            <style>
            	html, body{
            		behavior: url('@Url.Content("~/Areas/Content/css/csshover3.htc")');
            	}

            	.png{
            		behavior: url('@Url.Content("~/Areas/Content/css/iepngfix.htc")');
            	}
            </style>
            <script type="text/javascript" src="@Url.Content("~/Areas/Content/js/iepngfix_tilebg.js")"></script>
        <![endif]-->
    </head>
    <script type="text/javascript">        
        var root = '@Request.ApplicationPath';
    </script>
    <body>
        <div class="topNav">
            <div class="nameNav">Gamebetplus.com</div>
            <div class="userNav">
                <ul>
                    <li class="profile">
                        <a href="@Url.Action("UpdateProfile", "DashBoard")">
                            <img alt="profile" src="@Url.Content("~/Areas/Content/images/userPic.png")" />
                            <span>@User.Identity.Name</span>
                        </a>
                    </li>
                    <li class="li_last_child">
                        <a href="@Url.Action("LogOut", "DashBoard")">
                            <img alt="profile" src="@Url.Content("~/Areas/Content/images/logout.png")" />
                            <span>Logout</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>

        <div class="header">
            <div class="logo">
                <img alt="" src="@Url.Content("~/Areas/Content/images/logo.png")" />
            </div>
            <div class="midNav">
                
                @if (action.Equals("Modify") || action.Equals("EndPlay"))
                {
                    <ul>
                        <li><a href="@returnUrl"><span class="back">Back</span></a></li>
                        <li class="midNav_last_child">
                            <a href="javascript:void(0)" onclick="save()">
                                <span id="saveContent" class="save">Save</span>
                            </a>
                        </li>
                    </ul>
                }
                
                @if(controller.Equals("Match") && action.Equals("Index"))
                {
                    <ul>
                        <li>
                            <a href="javascript:void(0)" onclick="createObj()">
                                <span class="add_new">Add new</span>
                            </a>
                        </li>

                        <li>
                            <a href="javascript:void(0)" onclick="showStatusAll()">
                                <span class="show_items">
                                    Show</span>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:void(0)" onclick="hideStatusAll()">
                                <span class="hide_items">
                                    Hide</span>
                            </a>
                        </li>

                        <li>
                            <a href="javascript:void(0)" onclick="deleteAll()">
                                <span class="delete_items">Delete</span>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:void(0)" onclick="InPlay()">
                                <span class="delete_items">InPlay</span>
                            </a>
                        </li>
                        <li class="midNav_last_child">
                            <a href="javascript:void(0)" onclick="EndPlay()">
                                <span class="delete_items">EndMatch</span>
                            </a>
                        </li>
                    </ul>                    
                }
                @if(!controller.Equals("Match") && action.Equals("Index"))
                {
                    <ul>
                        <li>
                            <a href="javascript:void(0)" onclick="createObj()">
                                <span class="add_new">Add new</span>
                            </a>
                        </li>

                        <li>
                            <a href="javascript:void(0)" onclick="showStatusAll()">
                                <span class="show_items">
                                    Show</span>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:void(0)" onclick="hideStatusAll()">
                                <span class="hide_items">
                                    Hide</span>
                            </a>
                        </li>
                        <li class="midNav_last_child">
                            <a href="javascript:void(0)" onclick="deleteAll()">
                                <span class="delete_items">Delete</span>
                            </a>
                        </li>
                    </ul>                    
                }
            </div>
        </div>
        <div id="content">
            <table width="100%">
                <tr>
                    <td width="237" valign="top">
                        <div class="left_content">
                            <ul>
                                <li style="margin-top: 0px;">
                                    <a href="@Url.Action("index", "DashBoard")" class="item" id="user_content" title="Manage User">
                                        <span class="menu_dashboard">Dashboard</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("index", "Match")" class="item" id="match_content">
                                        <span class="menu_items">Manager Matches</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("Index", "Bet")" class="item" id="bet_content">
                                        <span class="menu_items">Manager Bet</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("Index", "UserBet")" class="item" id="userbet_content">
                                        <span class="menu_items">Manager UserBet</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("index", "WithDraw")" class="item" id="withdraw_content">
                                        <span class=" menu_items">Manager WithDraw</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("index", "Deposit")" class="item" id="deposit_content" >
                                        <span class="menu_items">Manager Deposit</span>
                                    </a>
                                </li>

                                <li>
                                    <a class="item" href="@Url.Action("index", "League")" id="league_content" >
                                        <span class="menu_items">Manager League</span>
                                    </a>
                                </li>

                                <li>
                                    <a class="item" href="@Url.Action("index", "SoccerTeam")" id="team_content" >
                                        <span class="menu_items">Manager Team</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("index", "Common")" id="common_content" >
                                        <span class="menu_items">Manager Content</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="@Url.Action("index", "Announcement")" id="announcement_content" >
                                        <span class="menu_items">Manager Announcement</span>
                                    </a>
                                </li>

                                <li>
                                    <a href="@Url.Action("Index", "SecureStore")">
                                        <span class="menu_setting">Setting Store</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </td>
                    <td valign="top">
                        <div class="right_content">
                            @RenderBody()
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div class="footer">
            <div class="text_footer">&copy; Copyright 2012. All rights reserved. Developed by HKTB
            </div>
        </div>
        @*<div id="loader">
            <div class="bg_mask"></div>
            <div class="processing">
                <div class="bg_processing">
                    <img alt="Loading" src="@Url.Content("~/Areas/Content/images/ajax-loader.gif")" /><br />
                    System is processing...
                </div>
            </div>
        </div>*@
    </body>

</html>
